package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.ClueDto;
import com.qk.dto.CluePoolDto;
import com.qk.entity.Clue;
import com.qk.vo.OverviewVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ClueMapper extends BaseMapper<Clue> {
    /**
     * 线索列表
     */
    Page<Clue> listClues(Page<Clue> cluePage, ClueDto clueDto);

    /**
     * 获取线索
     */
    Clue getClueById(Integer id);

    /**
     * 获取线索总览
     */
    OverviewVo getClueOverview();

    /**
     * 查询线索池列表
     */
    Page<Clue> getPoolClues(Page<Clue> page, CluePoolDto cluePoolDto);
}
